#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() {
	float M,S=0;
	int N, i=1;
	scanf("%f%d", &M, &N);
	S = M;
	M /= 2.0;
	for (i = 2; i <= N; i++) {
		S = S + M * 2.0;
		M /= 2.0;
	}
	printf("%.2f %.2f\n", M, S);
	return 0;
}